{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login</title>
</head>

<body>
  <form method="post" action="">
    <table width="100%" border="0">
  <tr>
    <td><div align="right">{{ form.username.label_tag }} </div></td>
    <td>{{ form.username }}</td>
    <td>{% if form.username.errors %}<ul class="errorlist">{{ form.username.errors }}</ul> 
	 {% else %} 
	 <ul class="errorlist">{{ form.username.help_text }}</ul> 
    {% endif %}</td>
  </tr>
 <tr>
    <td><div align="right">{{ form.password.label_tag }} </div></td>
    <td>{{ form.password }}</td>
    <td>{% if form.password.errors %}<ul class="errorlist">{{ form.password.errors }}</ul> 
	 {% else %} 
	 <ul class="errorlist">{{ form.password.help_text }}</ul> 
    {% endif %}</td>
  </tr>
  <tr>
    <td><div align="right">{{ form.saveLogin.label_tag }} </div></td>
    <td>{{ form.saveLogin }}</td>
    <td>{% if form.saveLogin.errors %}<ul class="errorlist">{{ form.saveLogin.errors }}</ul> 
	 {% else %} 
	 <ul class="errorlist">{{ form.saveLogin.help_text }}</ul> 
    {% endif %}</td>
  </tr>
  <tr>
    <td><div align="right">{{ form.validation.label_tag }} </div></td>
    <td>{{ form.validation }}<img src="/accounts/validate/"/></td>
    <td>{% if form.validation.errors %}<ul class="errorlist">{{ form.validation.errors }}</ul> 
	 {% else %} 
	 <ul class="errorlist">{{ form.validation.help_text }}</ul> 
    {% endif %}</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="{% trans "login" %}" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
  </form>
</body>
</html>
